package com.bgq365.study.springboot2.boot02web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ViewTestController {

    @GetMapping("/thymeleaf")
    public String success(Model model){
        model.addAttribute("h1","Thymeleaf Hello World");
        model.addAttribute("link","http://www.baidu.com");
        return "thymeleaf";
    }
}
